<template>
    <div class="about-wrapper">
        <ul class="left">
            <li class="title">
                <h3>帮助中心</h3>
                <p>help&nbsp;&nbsp;&nbsp;center</p>
            </li>
            <li :class="['item', selected=='about'?'selected':'']" @click="selected='about'">
                <img src="../assets/关于我们.png" class="item-icon"/>
                <div class="item-text">关于我们</div>
            </li>
            <li :class="['item', selected=='concat'?'selected':'']" @click="selected='concat'">
                <img src="../assets/联系我们.png" class="item-icon"/>
                <div class="item-text">联系我们</div>
            </li>
        </ul>
        <div class="right">
            <div class="title">
                <h4>联系我们</h4>
            </div>
            <div v-if="selected=='about'" class="content">
                Email: help@jikexueyuan.com
                <br>
                电话：010-86467749
                <br>
                公司地址：北京市海淀区上地三街9号
                <br>
                邮编：100085
            </div>
            <div v-else class="content about">
              fdlfjdlfjsdfjslfjslfjksjfksdjfksdjfkdjfkdjfdkjf
            </div>
        </div>
    </div>
</template>
<script>
export default {
  name: 'about',
  data () {
    return {
      selected: 'about' // about or concat
    }
  }
}
</script>

<style lang="less">
.about-wrapper {
    background: #eee;
    padding: 30px 15% 60px 15%;
    margin: 0 auto;
    display: flex;
    .left {
        background: #fff;
        margin-right: 20px;
        width: 200px;
        .item {
            display: flex;
            padding: 10px 30px;
            align-items: center;
            cursor: pointer;
        }
        .item-icon {
            margin-right: 15px;
        }
        .selected {
          background: #f9f9f9;
        }
    }
    .left .title {
        background: #19a1db;
        color: #fff;
        padding: 10px;
        h3 {
            font-weight: normal;
        }
    }
    .right {
        flex: 1;
        .title {
            background: #fff;
        }
        h4 {
            background: #19a1db;
            color: #fff;
            font-weight: normal;
            padding: 7px 20px;
            width: 70px;
        }
        .content {
            padding: 50px 40px;
            height: 600px;
            background: #fff;
            margin-top: 20px;
            line-height: 30px;
            color: #444;
        }
        .content.about {
          padding: 10px 50px;
        }
    }
}
</style>
